
import { API_CONFIG } from "../config/index.js";
import request from '../api/index.js'
// pod操作
export const getPodListHandler = (clusterId, namespace, labelSelector, fieldSelector) => {
    return request(API_CONFIG.getPodListApi, {clusterId, namespace, labelSelector, fieldSelector}, "get", 2000)
}

export const deletePodHandler = (clusterId, namespace, name, force) => {
    return request(API_CONFIG.deletePodApi, {clusterId, namespace, name, force}, "post", 2000)
}

export const deletePodListHandler = (clusterId, namespace, deleteList, force) => {
    return request(API_CONFIG.deletePodListApi, {clusterId, namespace, deleteList, force}, "post", 2000)
}